package com.coolingme.general;

/**
 * 具体访问者（ConcreteVisitor）∶实现对具体元素的操作
 *
 * @author wangyue
 * @date 2020-10-09 22:52
 */
public class ConcreteVisitorB implements IVisitor {
    @Override
    public void visit(ConcreteElementA element) {
        element.operationA("visitorB");
    }

    @Override
    public void visit(ConcreteElementB element) {
        element.operationB("visitorB");
    }
}
